package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.StrategyTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StrategyTemplateRepository extends ElasticsearchRepository<StrategyTemplate,Long> {


    /**
     * 通过主题ID查询所有数据
     * @param id
     * @return
     */
    List<StrategyTemplate> findByThemeId(Long id);

    List<StrategyTemplate> findByDestName(String name);
}
